package com.mo.config;

import com.mo.entity.Man;
import com.mo.entity.People;
import com.mo.entity.Woman;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author moon.pan
 * @program mo-all
 * @apiNote
 * @since 2022/3/28
 */
@Configuration
public class PeopleConfig {

    @Bean
    public People man(){
        return new Man();
    }

    @Bean
    public People woman(){
        return new Woman();
    }
}
